import React, {Component} from 'react';
import axios from 'axios';

class Test1 extends Component {
  constructor(props) {
    super(props);
    this.state = {  }
  }
  componentDidMount() {
    axios.get('/react/api/header.json')
    .then((res)=>{
      console.log(res)
    })
  }
  render() { 
    return ( <h2>hello world</h2> );
  }
}
 
export default Test1;